import { GSprite } from "../../../../com/mui/controls/GSprite";
import { SWFPlayer } from "../../scene/modle/SWFPlayer";
import { ModelType } from "../../scene/modle/data/ModelType";
//class SpiritEquipHDPlayer
    
    export  class SpiritEquipHDPlayer extends GSprite
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ createDisposedChildrenImpl(): void
        {
            super.createDisposedChildrenImpl();
            this._swfPlayer = new SWFPlayer();
            this._swfPlayer.loadComplete = this.onEffectLoadComplete;
            this._swfPlayer.load("spiritEquipEffectHD.swf", ModelType.NormalSwf, null);
            this._swfPlayer.loadComplete = this.onEffectLoadComplete;
            addChild(this._swfPlayer);
            return;
        }

        /* internal  */onEffectLoadComplete(arg1: SWFPlayer): void
        {
            arg1.timeRate = 2;
            arg1.play();
            if (arg1.movieClipData) 
            {
                arg1.movieClipData.isClear(false);
            }
            return;
        }

        /* internal */ /* var */_swfPlayer: SWFPlayer;
    }
